package sc.prototype.pfs.eventnotify.api;

public enum NoticeType {

    InstPayResult("InstPayResult", "机构支付结果");

    private final String code;

    private final String message;

    NoticeType(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public static NoticeType getByCode(String code) {
        for (NoticeType resultCode : NoticeType.values()) {
            if (resultCode.getCode().equals(code)) {
                return resultCode;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
